<template>
  <div>
    <el-container>
      <el-aside width="220px">
        <el-menu class="sidebar-el-menu" >
          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-trophy" style="margin-right: 20px; margin-left: 10px; font-size:20px"></i>  <!--图标-->
              校内比赛
            </template>
            <el-menu-item-group>
                <!--插入的地方-->
                <!--name地址 params传递参数-->
                <router-link to="/admin/UserMessage">
                  <el-menu-item index="1-1">
                  <i class="el-icon-s-custom" style="margin-right: 20px; margin-left: 10px; font-size:20px"></i>
                  <el-link :underline="false">个人信息</el-link>
                  </el-menu-item>
                </router-link>
                <!--插入的地方-->
                <router-link to="/admin/SchoolPlay">  <!--跳转的页面-->
                  <el-menu-item index="1-2">
                  <i class="el-icon-document-add" style="margin-right: 20px; margin-left: 10px; font-size:20px"></i>
                  <el-link :underline="false">校内比赛录入</el-link>
                  </el-menu-item>
                </router-link>
                <!--插入的地方-->
                <router-link to="/admin/GameApprove">
                  <el-menu-item index="1-3">
                  <i class="el-icon-view" style="margin-right: 20px; margin-left: 10px; font-size:20px"></i>
                  <el-link :underline="false">校内比赛公示</el-link>
                  </el-menu-item>
                </router-link>
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="2">
            <template slot="title">
              <i class="el-icon-s-check" style="margin-right: 20px; margin-left: 10px; font-size:20px"></i>
              加分管理
            </template>
            <el-menu-item-group>
                <router-link to="/admin/AwardedMarks">
                  <el-menu-item index="2-1">
                  <i class="el-icon-folder-add" style="margin-right: 20px; margin-left: 10px; font-size:20px"></i>
                  <el-link :underline="false">加分</el-link>
                  </el-menu-item>
                </router-link>
                <router-link to="/admin/AwardedMarksDisplay">
                  <el-menu-item index="2-2">
                  <i class="el-icon-camera-solid" style="margin-right: 20px; margin-left: 10px; font-size:20px"></i>
                  <el-link :underline="false">加分公示</el-link>
                  </el-menu-item>
                </router-link>
                <router-link to="/admin/MarkDown">
                  <el-menu-item index="2-3">
                  <i class="el-icon-folder-remove" style="margin-right: 20px; margin-left: 10px; font-size:20px"></i>
                  <el-link :underline="false">扣分</el-link>
                  </el-menu-item>
                </router-link>
                <router-link to="/admin/MarkDownDisplay">
                  <el-menu-item index="2-4">
                  <i class="el-icon-camera" style="margin-right: 20px; margin-left: 10px; font-size:20px"></i>
                  <el-link :underline="false">扣分公示</el-link>
                  </el-menu-item>
                </router-link>
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="3">
            <template slot="title">
              <i class="el-icon-user-solid" style="margin-right: 20px; margin-left: 10px; font-size:20px"></i>
              审批管理
            </template>
            <el-menu-item-group>
                <router-link to="/admin/ExaminationApprovalBrowse">
                  <el-menu-item index="3-1">
                  <i class="el-icon-edit-outline" style="margin-right: 20px; margin-left: 10px; font-size:20px"></i>
                  <el-link :underline="false">审批浏览</el-link>
                  </el-menu-item>
                </router-link>
                <router-link to="/admin/ExaminationApprovalOperate">
                  <el-menu-item index="3-2" disabled>
                  <i class="el-icon-edit" style="margin-right: 20px; margin-left: 10px; font-size:20px"></i>
                  <span>审批</span>
                  </el-menu-item>
                </router-link>
                <router-link to="/admin/ExaminationApproval">
                  <el-menu-item index="3-3">
                  <i class="el-icon-tickets" style="margin-right: 20px; margin-left: 10px; font-size:20px"></i>
                  <el-link :underline="false">审批公示</el-link>
                  </el-menu-item>
                </router-link>

            </el-menu-item-group>
          </el-submenu>
        </el-menu>
      </el-aside>
      <el-container>
        <el-header style="text-align: right; font-size: 20px">
          <el-dropdown>
            <i class="el-icon-s-custom" style="margin-right: 20px; margin-left: 10px; font-size:25px"></i>
            <el-dropdown-menu slot="dropdown">
                <router-link to="/admin/UserMessage">
                  <el-dropdown-item>
                  <el-link :underline="false">个人信息</el-link>
                  </el-dropdown-item>
                </router-link>
                <router-link to="/">
                  <el-dropdown-item>
                  <el-link :underline="false">退出登录</el-link>
                  </el-dropdown-item>
                </router-link>
            </el-dropdown-menu>
          </el-dropdown>
          <span>周东方晨</span>
        </el-header>
        <el-main>
          <!--在这里展示视图-->
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {

  name: "AdministratorMenu",
  data(){
    return{

    }
  }
}
</script>

<!--基本样式-->
<style scoped lang="scss">
.el-header {
  background-color: deepskyblue;
  color: #333;
  line-height: 60px;
}

//一定要添加！important提高优先级
//鼠标点击导航栏改变颜色
.el-menu-item.is-active {
  //设置背景颜色
  background-color: #DCDFE6 !important;
  ////设置字体颜色
  //color: darkgray !important;
}

//取消下划线
a{
  text-decoration: none;
}
.router-link-active {
  text-decoration: none;
}

.el-aside {
  color: #333;
}
</style>

